Personal tools

Lua/Client/Render/Functions/WorldToScreen

From JC2-MP Documentation

< Lua‎ | Client‎ | Render
Jump to: navigation, search

Returns    Vector2, boolean
Prototype    Render:WorldToScreen(Vector3 world_position)
Description    Transforms a position in the world into a screen position.


Additional Notes

  • The resulting position is clamped to the screen area.
  • The boolean indicates whether the resulting position would be visible on the screen or not.